#ifndef CBUTTON_H_INCLUDED
#define CBUTTON_H_INCLUDED

#include <SDL/SDL.h>
#include "CSurface.h"
#include "CFont.h"
#include "CAppStateManager.h"

enum {
    RIGHT,
    DOWN,
    LEFT,
    UP
};

class CButton {
    public:
        SDL_Surface*    Surf_ButtonBG;

    public:
        int             X;
        int             Y;

        int             BNum;
        int             GoState;
        bool            Select;
        char*           Title;

    private:
        CButton();


    public:
        static CButton OnLoad(char* link, int tX, int tY, int Num, char* text, int State);

        bool OnLoop(int tX, int tY);

        bool OnClick(int tX, int tY);

        bool OnDraw(SDL_Surface* Surf_Scr, SDL_Surface* Button, TTF_Font* Font);
};

#endif // CBUTTON_H_INCLUDED
